package mysql

import "gorm.io/gorm"

type UserZye5 struct {
	gorm.Model
	Username string `gorm:"type:varchar(32);unique;comment:账户;"`
	Password string `gorm:"type:varchar(32);comment:密码;"`
	Mobile   string `gorm:"type:varchar(32);comment:电话;"`
}

type RealNameZye5 struct {
	gorm.Model
	Userid   int    `gorm:"type:int(11);unique;comment:用户id;"`
	RealName string `gorm:"type:varchar(20);comment:姓名;"`
	IdCard   string `gorm:"type:varchar(18);comment:身份证;"`
}

// 新增实名认证数据

func (u *RealNameZye5) Create() error {
	return DB.Create(&u).Error
}
